package pl.com.qapps.datastore.base;

import java.util.Collection;

import com.google.appengine.api.datastore.Entity;
import com.google.appengine.api.datastore.FetchOptions;

public class FixedQueryResult implements QueryResult {

	private final Collection<Entity> entities;

	public FixedQueryResult(Collection<Entity> entities, int skipped) {
		this.entities = entities;
	}

	@Override
	public int getSkippedResults() {
		throw new UnsupportedOperationException("not supported yet");
	}

	@Override
	public int resultSize() {
		return entities.size();
	}

	@Override
	public Iterable<Entity> results() {
		return entities;
	}

}
